<template>
  <div class="not-found">
    <div class="container">
      <div class="error-code">404</div>
      <h1>页面未找到</h1>
      <p>您访问的页面不存在或已被删除</p>
      <el-button type="primary" @click="backToHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

function backToHome() {
  router.push('/')
}
</script>

<style scoped lang="scss">
.not-found {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f7fa;
  text-align: center;
  padding: 0 20px;
  
  .container {
    max-width: 600px;
  }
  
  .error-code {
    font-size: 120px;
    font-weight: bold;
    color: #409eff;
    line-height: 1;
    margin-bottom: 20px;
  }
  
  h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #303133;
  }
  
  p {
    font-size: 18px;
    color: #606266;
    margin-bottom: 30px;
  }
}
</style> 